﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CalendarAPP
{
    class FilePropertiesClass
    {
        /*
        string path = "F:图.jpg";

        DSOFile.OleDocumentPropertiesClass file = new OleDocumentPropertiesClass();
        file.Open(path, false, dsoFileOpenOptions.dsoOptionDefault);
        file.SummaryProperties.Title = "图片标题";
        file.SummaryProperties.Subject = "图片主题";
        file.SummaryProperties.Keywords = "文件关键字";
        file.SummaryProperties.Category = "文件分类";
        file.SummaryProperties.Author = "作者";
        file.SummaryProperties.Comments = "备注";

        //保存信息
        file.Save();

        //读取信息
        Response.Write(file.SummaryProperties.Title);
        Response.Write("<br/>");
        Response.Write(file.SummaryProperties.Subject);
        Response.Write("<br/>");
        Response.Write(file.SummaryProperties.Keywords);
        Response.Write("<br/>");
        Response.Write(file.SummaryProperties.Author);
        Response.Write("<br/>");
        Response.Write(file.SummaryProperties.Comments);
        Response.Write("<br/>");

        file.Close(false);
        */
    }
}
